//
//  YWEquipmentMaintenanceRecord.m
//  maintain
//
//  Created by 郑想 on 15/11/11.
//  Copyright © 2015年 ewin. All rights reserved.
//

#import "YWEquipmentMaintenanceRecord.h"
#import "MJExtension.h"
#import "YWCommonTool.h"

@implementation YWEquipmentMaintenanceRecord

@end

@implementation YWEquipmentMaintenanceRecordJson
+ (NSDictionary*)mj_objectClassInArray
{
    return @{ @"pictures" : @"YWPicture",
              @"equipmentFields" : @"YWEquipmentFieldRecord"};
}
- (void)mj_keyValuesDidFinishConvertingToObject
{
    if (self.maintenanceTime) {
        NSString *dayMonthString = [YWCommonTool showTime:self.maintenanceTime / 1000 andFormatter:@"dd MM月"];
        self.dayMonthString = dayMonthString;
    }else{
        self.dayMonthString = @"";
    }
}
@end
